import request from '@/utils/request'

// 查询实践预约签到列表
export function listPracticeCheckIn(query) {
  return request({
    url: '/training/practiceCheckIn/list',
    method: 'get',
    params: query
  })
}

// 查询实践预约签到详细
export function getPracticeCheckIn(practiceCheckId) {
  return request({
    url: '/training/practiceCheckIn/' + practiceCheckId,
    method: 'get'
  })
}

// 新增实践预约签到
export function addPracticeCheckIn(data) {
  return request({
    url: '/training/practiceCheckIn',
    method: 'post',
    data: data
  })
}

// 修改实践预约签到
export function updatePracticeCheckIn(data) {
  return request({
    url: '/training/practiceCheckIn',
    method: 'put',
    data: data
  })
}

// 删除实践预约签到
export function delPracticeCheckIn(practiceCheckId) {
  return request({
    url: '/training/practiceCheckIn/' + practiceCheckId,
    method: 'delete'
  })
}
// 通过条件搜索查询实践预约签到列表
export function searchCheckIn(data) {
  return request({
    url: '/training/practiceCheckIn/search',
    method: 'get',
    params: data
  })
}

// 批量修改签到状态
export function batchUpdateStatus(data) {
  return request({
    url: '/training/practiceCheckIn/batchUpdateStatus',
    method: 'post',
    data: data
  })
}
